cd $(dirname "$0")
# 把文件上传到181上
scp ct_sentence.txt da@$DATA_SERVER_IP:/home/da/pattern_data/qa_output/ct_sentence.txt
# 在181上执行分词操作
ssh da@$DATA_SERVER_IP "bash /home/da/pattern_recognition/marksystem_crf_label/label.sh 1 3 /home/da/pattern_data/qa_output/ct_sentence.txt /home/da/pattern_data/qa_output/ct_sentence_cut_result.txt"
# 在181上执行OS标注
ssh da@$DATA_SERVER_IP "bash /home/da/pattern_recognition/marksystem_crf_label/label.sh 2 3 /home/da/pattern_data/qa_output/ct_sentence_cut_result.txt /home/da/pattern_data/qa_output/ct_sentence_os_result.txt"
# 进行规则处理
curl -d "inputFilePath=/home/da/pattern_data/qa_output/ct_sentence_os_result.txt&outputFilePath=/home/da/pattern_data/qa_output/ct_sentence_rule_result.txt&type=3" "http://localhost:58084/analysis/executeRule/executeRule.do"
# 在181上执行bme标注
ssh da@$DATA_SERVER_IP "bash /home/da/pattern_recognition/marksystem_crf_label/label.sh 3 3 /home/da/pattern_data/qa_output/ct_sentence_rule_result.txt /home/da/pattern_data/qa_output/ct_sentence_bme_result.txt"
# 从181复制文件回来
ssh da@$DATA_SERVER_IP "scp /home/da/pattern_data/qa_output/ct_sentence_bme_result.txt analysis@$LOCAL_IP:$(pwd)/bme_result_ct.txt"